#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

main()
{
	int sockfd;
	char hostaddr[126];
	int portnum = 5300;
	struct sockaddr_in sin;

 	if((sockfd = socket(AF_INET,SOCK_STREAM,0)) == -1){
  		printf("Socket Opening Faield!");
  		exit(1);
 	}

	memset(hostaddr, 0x00, 126);
	strcpy(hostaddr, "10.55.1.133");

	memset(&sin,0,sizeof(sin));
	sin.sin_family = AF_INET;
	sin.sin_port = htons(portnum);
	sin.sin_addr.s_addr = inet_addr(hostaddr);

	 if(connect(sockfd, (struct sockaddr *)&sin, sizeof(struct sockaddr)) == -1){
  		printf("Error in connection!!");
  		exit(1);
 	}
	printf("Connect to crm\n");
	exit(0);
}
